function select_pro(id, name){
	document.getElementById("cur_id").value = id
	document.getElementById("cur_name").value = name
}

function submit_pp_select(){
	var id = opener.document.getElementById("Kha_Id");
	var name = opener.document.getElementById("khachhang");
	var id_pt = opener.document.getElementById("Kha_Id_t");
	var name_pt = opener.document.getElementById("khachhang_t");
	var id_pc = opener.document.getElementById("Kha_Id_c");
	var name_pc = opener.document.getElementById("khachhang_c");
	var kh_dmll = opener.document.getElementById("arr_dmll");
	var kh_chbh = opener.document.getElementById("arr_chbh");
	var kh_hopdong = opener.document.getElementById("arr_hopdong");
	if(document.getElementById("cur_id").value==0){
		alert(COREJS._getJsLang('_ALERT_CHUA_CHON_KH'));
		return false;
	}
	else{
		if(id){
			id.value = document.getElementById("cur_id").value
		}
		if(name){
			name.value = document.getElementById("cur_name").value
		}
		if(id_pt){
			id_pt.value = document.getElementById("cur_id").value
		}
		if(name_pt){
			name_pt.value = document.getElementById("cur_name").value
		}
		if(id_pc){
			id_pc.value = document.getElementById("cur_id").value
		}
		if(name_pc){
			name_pc.value = document.getElementById("cur_name").value
		}
		if(kh_dmll){
			kh_dmll.innerHTML = $('#ttdm_'+$('#cur_id').val()).html();
		}
		if(kh_chbh){
			kh_chbh.innerHTML = $('#ttch_'+$('#cur_id').val()).html();
		}
		if(kh_hopdong){
			kh_hopdong.innerHTML = $('#tthd_'+$('#cur_id').val()).html();
		}
		close_popup();
	}
}